﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0079)http://www.phpform.org/formbuilder/view.php?id=993c8d0d8bb7d991dbc1c51bd11e1fd0 -->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title>SOS</title>
  <link rel="stylesheet" type="text/css" href="./form/view.css" media="all" />
  <script type="text/javascript" src="./form/view.js"></script>
  <script type="text/javascript" src="./form/calendar.js"></script>
  
  <script type="text/javascript" src="./sos/base.js"></script>
  <link rel="stylesheet" type="text/css" href="./sos/highlight.css" />
  <script type="text/javascript" src="./sos/highlight.js"></script>
 
  <link rel="stylesheet" type="text/css" href="./sos/sos.css" />
  <script type="text/javascript" src="./sos/sos.js"></script>
</head>

<body id="main_body" class="no_guidelines safari">
  <img id="top" src="./form/top.png" alt="" name="top" />

  <div id="form_container">
    <h1><a>SOS</a></h1>

    <form class="appnitro" method="post">
      <div class="form_description">
        <h2>SOS</h2>

        <p>单片机通用微操作系统</p>
      </div>

      <ul>
	  
		<li> 
			<label class="description" for="SOS_IMPLEMENT_HEAD">设备</label> 
			<div> 
				<select class="element select small" id="SOS_IMPLEMENT_HEAD" name="#define"> 
					<option value='"sos.mega16.h"' selected="selected" >Mega16</option> 
					<option value='"sos.c51.h"' >C51</option> 
				</select> 
			</div>
			<p class="guidelines" id="guide_device"><small>选择设备类型</small></p> 
		</li> 

        <li>
			<label class="description" for="SOS_SCHED_MOD">调度类型</label>
			<div>
				<select class="element select small" id="SOS_SCHED_MOD" name="#define"> 
					<option value="SOS_SCHED_MOD_QZ" selected="selected" >抢占式</option>
					<option value="SOS_SCHED_MOD_LZ" >轮转式</option>
				</select>
			</div>
			<p class="guidelines" id="guide_sched"><small>抢占式调度有任务的优先</small></p> 
		</li>

        <li>
          <label class="description" for="SOS_RR_TIME">时间片长度</label>
          <div>
            <input id="SOS_RR_TIME" name="#define" class="element text small" type="text" maxlength="3" value="8" />
          </div>
		  <p class="guidelines" id="guide_time"><small>输入正整数</small></p> 
        </li>

        <li>
          <label class="description" for="SOS_SUPPORT_TASK_NUM">任务数量</label>
          <div>
            <input id="SOS_SUPPORT_TASK_NUM" name="#define" class="element text small" type="text" maxlength="3" value="3" />
          </div>
		  <p class="guidelines" id="guide_tasks"><small>输入正整数</small></p> 
        </li>

		<li> 
			<label class="description" for="functions">使用函数 </label> 
			<span> 
				<input id="SOS_DELAY" name="#define" class="element checkbox" type="checkbox" value="void SOS_Delay(void);" checked="checked"/> 
				<label class="choice" for="SOS_DELAY">SOS_Delay</label> 
				<input id="SOS_TASKSUSPEND" name="#define" class="element checkbox" type="checkbox" value="void SOS_TaskSuspend(unsigned char taskId);" /> 
				<label class="choice" for="SOS_TASKSUSPEND">SOS_TaskSuspend</label> 
				<input id="SOS_TASKRESUME" name="#define" class="element checkbox" type="checkbox" value="void SOS_TaskResume(unsigned char taskId);" /> 
				<label class="choice" for="SOS_TASKRESUME">SOS_TaskResume</label> 
				<input id="SOS_TIMEDLY" name="#define" class="element checkbox" type="checkbox" value="void SOS_TimeDly(unsigned int ticks);" /> 
				<label class="choice" for="SOS_TIMEDLY">SOS_TimeDly</label> 
			</span> 
			<p class="guidelines" id="guide_functions"><small>用户程序中需要调用的系统函数</small></p> 
		</li> 
        <li class="buttons">
			<input type="hidden" id="SOS_CONFIG_GENERATOR" name="#define" value= "1" />
			<input id="saveForm" class="button_text" type="button" name="saveForm" value="生成代码" onclick="Sos(this.form)" />
		</li>
		
      </ul>
    </form>
	
	
	<h2 class="code_title" >main.c</h2>
	<div name="#code" id="main.c" class="code" >点击“生成代码”，main.c 将在这里显示</div>
   
	<h2 class="code_title" >sos.c</h2>
	<div name="#code" id="sos.c" class="code" >点击“生成代码”，sos.c 将在这里显示</div>
    
	<div id="footer">
      &copy;<a href="http://www.ustc.edu.cn/">USTC</a>
    </div>
  </div><img id="bottom" src="./form/bottom.png" alt="" name="bottom" />
</body>
</html>
